<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String ctx = request.getContextPath();
	request.setAttribute("ctx", ctx);
%>
<html>
<head>
	<script type="text/javascript">
	function checkForm(){
		var name=document.getElementById("usrName").value;
		var pwd=document.getElementById("password").value;
		if(name==null||name==""){
			alert("请输入用户名！");
			return false;
			};
		if(pwd==null||pwd==""){
			alert("请输入密码！");
			return false;
						}
			return true;
			
		}
	</script>
<title>网站后台登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
	var _CTX = '${ctx}';
</script>
<style>
#usrName{
	background:url(${ctx}/images/login/login1_03.gif) no-repeat;
	height:23;
	border:0px 0px 0px 0px ;
	width:205;
	PADDING-LEFT: 25px;
	font-size:18px;
}
#password{
	background:url(${ctx}/images/login/login1_09.gif) no-repeat;
	height:24;
	border:0px 0px 0px 0px ;
	width:205;
	PADDING-LEFT: 25px;
	font-size:18px;
}
#login{
	background:url(${ctx}/images/login/login1_12.gif) no-repeat;
	height:28;
	border:0px 0px 0px 0px ;
	width:70;
	cursor:hand;
}
#exit{
	background:url(${ctx}/images/login/login1_14.jpg) no-repeat;
	height:28;
	border:0px 0px 0px 0px ;
	width:70;
	cursor:hand;
}
</style>
<script type="text/javascript">
	function ifexit(){
		if(confirm("确定退出本系统？")){
			window.close();
		}else{
			return false;
		};
	}
</script>
</head>
<body background="${ctx}/images/background.jpg"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<center>
<form action="${ctx}/login.do?method=doLogin" method="post" onSubmit="return checkForm();">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" valign="middle">
<table id="__01" width="565" height="404" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="7">
			<img src="${ctx}/images/login/login1_01.gif" width="564" height="176" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="176" alt=""></td>
	</tr>
	<tr>
		<td rowspan="8">
			<img src="${ctx}/images/login/login1_02.gif" width="227" height="228" alt=""></td>
		<td colspan="5" rowspan="2">
			<input type="text" id="usrName" name="managers.mName"/></td>
		<td>
			<img src="${ctx}/images/login/login1_04.gif" width="131" height="3" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="3" alt=""></td>
	</tr>
	<tr>
		<td rowspan="7">
			<img src="${ctx}/images/login/login1_05.gif" width="131" height="225" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="21" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="${ctx}/images/login/login1_06.gif" width="1" height="1" alt=""></td>
		<td colspan="4" rowspan="2">
			<img src="${ctx}/images/login/login1_07.gif" width="205" height="32" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="1" alt=""></td>
	</tr>
	<tr>
		<td rowspan="5">
			<img src="${ctx}/images/login/login1_08.gif" width="1" height="203" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="31" alt=""></td>
	</tr>
	<tr>
		<td colspan="4">
			<input type="password" id="password" name="managers.mPassword"/></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="26" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="${ctx}/images/login/login1_10.gif" width="3" height="23" alt=""></td>
		<td colspan="3">
			<img src="${ctx}/images/login/login1_11.gif" width="202" height="23" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="23" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" id="login" value=""/></td>
		<td rowspan="2">
			<img src="${ctx}/images/login/login1_13.gif" width="63" height="123" alt=""></td>
		<td>
			<input type="button" id="exit" onclick="ifexit();" /> </td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="28" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="${ctx}/images/login/login1_15.gif" width="3" height="95" alt=""></td>
		<td>
			<img src="${ctx}/images/login/login1_16.gif" width="68" height="95" alt=""></td>
		<td>
			<img src="${ctx}/images/login/login1_17.gif" width="71" height="95" alt=""></td>
		<td>
			<img src="${ctx}/images/login/split.gif" width="1" height="95" alt=""></td>
	</tr>
</table>
</td></tr></table>
</form>
</center>
</body>
</html>